<?php

/**
* @current cmsusermanagelog.php
* @author   caoqicheng <caoqicheng@haibao.com>
* @date 2017年2月22日 上午9:41:03
*/
namespace haibao\jiepai\model\data\user;

class CmsUserManageLog extends \haibao\jiepai\model\data\Base{
	
	/**
	 * 删除时置为-1，默认是0
	 * 是否是删除
	 */
	const FLAG_IS = 0;
	const FLAG_DEL = -1;
	
	
	/**
	 * 类型
	 * 1-禁言警告，2-封号警告，3-禁言执行，4-封号执行，5-禁言执行撤消，6-封号执行撤消
	 */
	const TYPE_WARN = 1;
	const TYPE_DEL = 2;
	const TYPE_BAN = 3;
	const TYPE_IN = 4;
	const TYPE_REL_BAN = 5;
	const TYPE_REL_DEL = 6;
	
	
    public $Reason;
    
    public $UserID;
    
    public $CreateTime;
    
    public $AdminUserID;

    public $Type;
    
    public $EndTime;
    
    public function __construct(){
        parent::__construct();
        
        $this->intField('Type', 'Type');
        $this->stringField('Reason', 'Reason');
        $this->intField('UserID', 'UserID');
        $this->dateField('CreateTime', 'CreateTime');
        $this->intField('AdminUserID', 'AdminUserID');
        $this->dateField('EndTime', 'EndTime');
        
        $this->setTableName('cms_user_manage_log');
    }
}

